#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
int pingfan(int a, int b)
{
	int sum = 1;
	while (b)
	{
		sum *= a;
		b--;
	}
	return sum;
}
int main()
{
	int a = 0;
	for (a=100;a<1000;a++)
	{
		if (a ==(a%10)*(a%10)*(a%10)+(a/100)* (a / 100)*(a / 100)+(a/10%10)* (a / 10 % 10)* (a / 10 % 10))
		{
			printf("%d ", a);
		}
	}

}